﻿using System;

using DanielVaughan;
using DanielVaughan.Services;
using DanielVaughan.Windows;

namespace CalciumTemplateApp
{
	/// <summary>
	/// This class contains the UI logic for the app's about view.
	/// </summary>
	public class AboutViewModel : UserViewModel
	{
		public AboutViewModel() : base(MainResources.Page_About_Title)
		{
			NavigatedTo += HandleNavigatedTo;
			NavigatingFrom += HandleNavigatingFrom;
		}

		public string Version
		{
			get
			{
				/* This value is generated using a T4 template 
				 * in the Properties directory. 
				 * It is derived from the current date and time. */
				const string version = AssemblyInfoConstants.AssemblyFileVersion;
				return string.Format(MainResources.Page_About_Version_Format1, version);
			}
		}

		void HandleNavigatingFrom(object sender, System.ComponentModel.CancelEventArgs e)
		{
		}
		
		void HandleNavigatedTo(object sender, EventArgs e)
		{
		}
	}
}
